export class SomeClass{
  logType(){
    console.log(this.type);
    console.log(this.anotherType);
  }
}

export class Variant1 extends SomeClass{type=1}
export class Variant2 extends SomeClass{type=2; anotherType=3}

export class SomeClass{
  logType(){
    console.log(this.type);
  }
}

export class Variant1 extends SomeClass{type=1}
export class Variant2 extends SomeClass{type=2}
export class Variant3 extends SomeClass{type=3}
export class Variant4 extends SomeClass{type=4}
export class Variant5 extends SomeClass{type=5}

export class SomeClass{
  logType(){
    console.log(this.type);
    console.log(this.anotherType);
  }
}

export class Variant1 extends SomeClass{type=1; anotherType=2}

class C {
  foo;}

class C {foo;
}

class C {foo;
  bar;}

{ foo; }

class C
{ foo }